/*
xp_wdg.h

offer watch dog api
designed by lunanting


-----------------------------
2021-03-09 14:58:57
create file
-----------------------------

*/



/********************type define*******************/
#ifndef __XP_WDG_H
#define __XP_WDG_H

#include "aos/kernel.h"
#include "base_type.h"


//watch dog 
typedef struct{
    int dogPort;    //dog port 1~3
    int timeout;    // s
    int feed_cycle; // s
    aos_timer_t timer;

}WDG_data;





/***************************extern*************************/
extern int xp_wdg_init(int ot,int ft);  //init watch dog
extern int xp_wdg_init_ms(int ot,int ft_ms); //init watch dog feeds ms
extern void xp_wdg_stop(void);  //stop watch dog
extern void xp_wdg_open(void);  //open watch dog

#endif
// end of the file
